package org.example.xls.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.xls.pojo.User;

@Mapper
public interface LoginMapper {
    @Select("select * from user where openid=#{openid}")
    User getUserByOpenid(String openid);
    @Insert("insert into user(openid) values(#{openid})")
    void insertUserByOpenid(String openid);
}